#!/bin/sh

. $HOME/bin/config.sh

#从git拉取代码
$HOME/bin/checkout.sh
checkErr $? "git 拉取代码"

#maven命令打包
$HOME/bin/package.sh
checkErr $? "编译打包"

#部署到tomcat
$HOME/bin/deploy.sh
checkErr $? "部署到tomcat"

#停止tomcat
$HOME/bin/restart.sh
checkErr $? "重启tomcat"

tail -100f $TOMCAT_HOME/logs/catalina.out
